import request from '@/utils/request'

// 新增工单信息
export function submitCarWorkOrder(data) {
  return request({
    url: '/car/carWorkOrder',
    method: 'post',
    data
  })
}

//根据车架号查
export function getVinNo(vinNo) {
  return request({
    url: `/car/carBasic/findCarBasicByVinNo/${vinNo}`,
    method: 'get',
  })
}

//根据车牌号查
export function getCarNo(carNo) {
  return request({
    url: `/car/carBasic/findCarBasicByCarNo/${carNo}`,
    method: 'get',
  })
}


//根据车辆id查询正在用车中的车辆订单信息
export function findCarOrderVoByCarId(vinNo) {
  return request({
    url: `/car/carWorkOrder/findCarOrderVoByCarId/${vinNo}`,
    method: 'get',
  })
}

//年检查车架号

export function getInspectVinNo(data) {
  return request({
    url: `/car/carBasic/getListByCarNoOrVinNo/`,
    method: 'post',
    data
  })
}

///carBasic/findCarListByCarNo/{carNo}

export function findCarListByCarNo(carNo) {
  return request({
    url: `/car/carBasic/findCarListByCarNo/${carNo}`,
    method: 'get',
  })
}
